<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{numeroSolicitudes.page1}" id="page1">
            <ui:html binding="#{numeroSolicitudes.html1}" id="html1">
                <ui:head binding="#{numeroSolicitudes.head1}" id="head1">
                    <ui:link binding="#{numeroSolicitudes.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{numeroSolicitudes.body1}" id="body1" style="-rave-layout: grid">
                    <br/>
                    <ui:form binding="#{numeroSolicitudes.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:button action="#{numeroSolicitudes.button1_action}" binding="#{numeroSolicitudes.button1}" id="button1"
                            imageURL="/resources/home3.gif" mini="true" primary="true"
                            style="height: 29px; left: 72px; top: 120px; position: absolute; width: 46px" text="Cerrar"/>
                        <ui:button action="#{numeroSolicitudes.buscar_action}" binding="#{numeroSolicitudes.buscar}" id="buscar"
                            imageURL="/resources/consultar.png" mini="true" primary="true"
                            style="height: 29px; left: 128px; top: 120px; position: absolute; width: 46px" text="Consultar"/>
                        <ui:button action="#{numeroSolicitudes.imprimir_action}" binding="#{numeroSolicitudes.imprimir}" id="imprimir"
                            imageURL="/resources/action_print1.gif" mini="true" primary="true"
                            style="height: 29px; left: 192px; top: 120px; position: absolute; width: 47px" text="Imprimir"/>
                        <ui:label binding="#{numeroSolicitudes.label8}" id="label8" style="left: 72px; top: 192px; position: absolute" text="Agencia"/>
                        <ui:label binding="#{numeroSolicitudes.label1}" id="label1" style="left: 72px; top: 216px; position: absolute" text="Producto"/>
                        <ui:label binding="#{numeroSolicitudes.label2}" id="label2" style="left: 72px; top: 264px; position: absolute" text="Sublinea"/>
                        <ui:label binding="#{numeroSolicitudes.label3}" id="label3" style="left: 24px; top: 288px; position: absolute" text="Tipo Solicitud"/>
                        <ui:label binding="#{numeroSolicitudes.label4}" id="label4" style="left: 72px; top: 312px; position: absolute" text="Usuario"/>
                        <ui:messageGroup binding="#{numeroSolicitudes.messageGroup1}" id="messageGroup1" style="height: 70px; left: 360px; top: 120px; position: absolute; width: 241px"/>
                        <ui:calendar binding="#{numeroSolicitudes.finicialCalendar}" columns="10" id="finicialCalendar" style="height: 24px; left: 96px; top: 408px; position: absolute; width: 96px"/>
                        <ui:calendar binding="#{numeroSolicitudes.ffinalCalendar}" columns="10" id="ffinalCalendar" style="height: 24px; left: 216px; top: 408px; position: absolute; width: 48px"/>
                        <ui:label binding="#{numeroSolicitudes.label5}" id="label5"
                            style="height: 22px; left: 72px; top: 360px; position: absolute; text-decoration: underline; width: 104px" text="Rango de fechas"/>
                        <ui:dropDown binding="#{numeroSolicitudes.agenciaDropDown}" converter="#{numeroSolicitudes.agenciaDropDownConverter}"
                            id="agenciaDropDown" items="#{numeroSolicitudes.sct0045DataProvider.options['SCT0045.CDGOAGNCIA,SCT0045.NMBREAGNCIA']}" style="left: 120px; top: 192px; position: absolute; width: 213px"/>
                        <ui:dropDown binding="#{numeroSolicitudes.productoDropDown}" id="productoDropDown"
                            items="#{numeroSolicitudes.sct0004DataProvider.options['SCT0004.CDGOPRDCTO,SCT0004.DSCRPCION']}"
                            onChange="common_timeoutSubmitForm(this.form, 'productoDropDown');"
                            style="left: 120px; top: 216px; position: absolute; width: 214px" valueChangeListener="#{numeroSolicitudes.productoDropDown_processValueChange}"/>
                        <ui:dropDown binding="#{numeroSolicitudes.sublineaDropDown}" id="sublineaDropDown"
                            items="#{numeroSolicitudes.sct0019DataProvider.options['SCT0019.CDGOSBLNEA,SCT0019.DSCRPCIONSBLNEA']}"
                            onChange="common_timeoutSubmitForm(this.form, 'sublineaDropDown');"
                            style="left: 120px; top: 264px; position: absolute; width: 214px" valueChangeListener="#{numeroSolicitudes.sublineaDropDown_processValueChange}"/>
                        <ui:dropDown binding="#{numeroSolicitudes.tipoSolicitudDropDown}" id="tipoSolicitudDropDown"
                            items="#{numeroSolicitudes.sct0021DataProvider.options['SCT0021.CDGOTPOSLCTUD,SCT0021.DSCRPCIONTPOSLCTUD']}" onChange=""
                            style="left: 120px; top: 288px; position: absolute; width: 214px" valueChangeListener="#{numeroSolicitudes.tipoSolicitudDropDown_processValueChange}"/>
                        <ui:textField binding="#{numeroSolicitudes.usuarioTextField}" id="usuarioTextField" style="left: 120px; top: 312px; position: absolute; width: 120px"/>
                        <ui:alert binding="#{numeroSolicitudes.alert1}" id="alert1" style="height: 70px; left: 384px; top: 216px; position: absolute; width: 310px"/>
                        <ui:table augmentTitle="false" binding="#{numeroSolicitudes.table1}" id="table1" paginateButton="true" paginationControls="true"
                            style="left: 48px; top: 456px; position: absolute; width: 720px" title="Tabla" width="720">
                            <script><![CDATA[
                            /* ----- Functions for Table Preferences Panel ----- */
                            /*
                            * Toggle the table preferences panel open or closed
                            */
                            function togglePreferencesPanel() {
                            var table = document.getElementById("form1:table1");
                            table.toggleTblePreferencesPanel();
                            }
                            /* ----- Functions for Filter Panel ----- */
                            /*
                            * Return true if the filter menu has actually changed,
                            * so the corresponding event should be allowed to continue.
                            */
                            function filterMenuChanged() {
                            var table = document.getElementById("form1:table1");
                            return table.filterMenuChanged();
                            }
                            /*
                            * Toggle the custom filter panel (if any) open or closed.
                            */
                            function toggleFilterPanel() {
                            var table = document.getElementById("form1:table1");
                            return table.toggleTableFilterPanel();
                            }
                            /* ----- Functions for Table Actions ----- */
                            /*
                            * Initialize all rows of the table when the state
                            * of selected rows changes.
                            */
                            function initAllRows() {
                            var table = document.getElementById("form1:table1");
                            table.initAllRows();
                            }
                            /*
                            * Set the selected state for the given row groups
                            * displayed in the table.  This functionality requires
                            * the 'selectId' of the tableColumn to be set.
                            *
                            * @param rowGroupId HTML element id of the tableRowGroup component
                            * @param selected Flag indicating whether components should be selected
                            */
                            function selectGroupRows(rowGroupId, selected) {
                            var table = document.getElementById("form1:table1");
                            table.selectGroupRows(rowGroupId, selected);
                            }
                            /*
                            * Disable all table actions if no rows have been selected.
                            */
                            function disableActions() {
                            // Determine whether any rows are currently selected
                            var table = document.getElementById("form1:table1");
                            var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
                            // Set disabled state for top actions
                            document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
                            // Set disabled state for bottom actions
                            document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
                            }]]></script>
                            <ui:tableRowGroup binding="#{numeroSolicitudes.tableRowGroup1}" id="tableRowGroup1" rows="15"
                                sourceData="#{numeroSolicitudes.sct0022DataProvider1}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn1}" headerText="USUARIO" id="tableColumn1" sort="CDGOPRDCTO">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText1}" id="staticText1" text="#{currentRow.value['CDGOPRDCTO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn2}" headerText="CIUDAD" id="tableColumn2" sort="CDGOSBLNEA">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText2}" id="staticText2" text="#{currentRow.value['CDGOSBLNEA']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn3}" headerText="AGENCIA" id="tableColumn3" sort="CDGOTPOSLCTUD">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText3}" id="staticText3" text="#{currentRow.value['CDGOTPOSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn7}" headerText="PRODUCTO" id="tableColumn7" sort="NOM_PRODUCTO">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText7}" id="staticText7" text="#{currentRow.value['NOM_PRODUCTO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn4}" headerText="ETAPA" id="tableColumn4" sort="CDGODSNOSLCTUD">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText4}" id="staticText4" text="#{currentRow.value['CDGODSNOSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn5}" headerText="NUM. SOLICITUDES" id="tableColumn5" sort="CDGOESTDOSLCTUD">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText5}" id="staticText5" text="#{currentRow.value['CDGOESTDOSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{numeroSolicitudes.tableColumn6}" headerText="VLOR. SOLICITUDES" id="tableColumn6" sort="CDGOCSA">
                                    <ui:staticText binding="#{numeroSolicitudes.staticText6}" id="staticText6" text="#{currentRow.value['CDGOCSA']}"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <br/>
                        <ui:label binding="#{numeroSolicitudes.label9}" id="label9" style="left: 293px; top: 376px; position: absolute" text="Fecha Inicial"/>
                        <ui:label binding="#{numeroSolicitudes.label10}" id="label10" style="left: 426px; top: 376px; position: absolute" text="Fecha Final"/>
                        <ui:hiddenField binding="#{numeroSolicitudes.hiddenField1}" id="hiddenField1"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
